export const importRouters = () => {
  const routerList = [];
  const ctx = require.context('@/router/', true, /\.router\.js/);

  ctx.keys().forEach(element => {
    routerList.push(ctx(element).default);
  });

  return routerList;
};

export default importRouters;
